import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'index',
            component: () => import(/* webpackChunkName: "Login" */ 'views/Index.vue'),
            redirect: '/home',
            children: [
                {
                    path: '/home',
                    name: 'home',
                    component: () => import(/* webpackChunkName: "Login" */ 'views/Home.vue'),
                },
                {
                    path: '/my',
                    name: 'my',
                    component: () => import(/* webpackChunkName: "My" */ 'views/My.vue'),
                },
                {
                    path: '/order',
                    name: 'order',
                    component: () => import(/* webpackChunkName: "My" */ 'views/Order.vue'),
                },
            ]
        },
        {
            path: '/service',
            name: 'service',
            component: () => import(/* webpackChunkName: "Login" */ 'components/Home/service.vue'),
        },
        {
            path: '/package',
            name: 'package',
            component: () => import(/* webpackChunkName: "Login" */ 'components/Home/package.vue'),
        },

        {
            path: '/service/:type/:id',
            name: 'detail',
            component: () => import(/* webpackChunkName: "Login" */ 'components/Home/detail.vue'),
        },
        {
            path: '/packageDetail/:type/:id',
            name: 'packageDetail',
            component: () => import(/* webpackChunkName: "Login" */ 'components/Home/packageDetail.vue'),
        },
        {
            path: '/evaluate/:id/:type/',
            name: 'evaluate',
            component: () => import(/* webpackChunkName: "evaluate" */ 'components/Home/evaluate.vue'),
        },
        {
            path: '/orderconfirm/:type/:id',
            name: 'orderconfirm',
            component: () => import(/* webpackChunkName: "orderconfirm" */ 'components/Home/orderConfirm.vue'),
        },
        {
            path: '/address',
            name: 'address',
            component: () => import(/* webpackChunkName: "address" */ 'components/Home/address.vue'),
        },
        {
            path: '/addressEdit/:id',
            name: 'addressEdit',
            component: () => import(/* webpackChunkName: "addressEdit" */ 'components/Home/addressEdit.vue'),
        },
        {
            path: '/addressAdd',
            name: 'addressAdd',
            component: () => import(/* webpackChunkName: "addressAdd" */ 'components/Home/addressAdd.vue'),
        },
        {
            path: '/addressSelect',
            name: 'addressSelect',
            component: () => import(/* webpackChunkName: "addressSelect" */ 'components/Home/addressSelect.vue'),
        },
        {
            path: '/chinapage',
            name: 'chinapage',
            component: () => import(/* webpackChunkName: "chinapage" */ 'components/Home/chinaPage/pages.vue'),
        },
        {
            path: '/recruit',
            name: 'recruit',
            component: () => import(/* webpackChunkName: "recruit" */ 'components/Home/recruit/list.vue'),
        },
        {
            path: '/company/:id',
            name: 'company',
            component: () => import(/* webpackChunkName: "recruit" */ 'components/Home/recruit/company.vue'),
        },
        {
            path: '/jobdetail/:id',
            name: 'jobdetail',
            component: () => import(/* webpackChunkName: "recruit" */ 'components/Home/recruit/jobDetail.vue'),
        },
        {
            path: '/online/:id',
            name: 'online',
            component: () => import(/* webpackChunkName: "recruit" */ 'components/Home/online.vue'),
        },
        {
            path: '/person',
            name: 'address',
            component: () => import(/* webpackChunkName: "address" */ 'components/Home/personList.vue'),
        },
        {
            path: '/person/:id',
            name: 'address',
            component: () => import(/* webpackChunkName: "address" */ 'components/Home/personDetail.vue'),
        },
        {
            path: '/join/:id',
            name: 'join',
            component: () => import(/* webpackChunkName: "join" */ 'components/Home/recruit/join.vue'),
        },
        {
            path: '/login',
            name: 'login',
            component: () => import(/* webpackChunkName: "login" */ 'views/Login.vue'),
        },
        // 我的
        {
            path: '/myinfor',
            name: 'myinfor',
            component: () => import(/* webpackChunkName: "infor" */ 'components/My/set/infor.vue'),
        },
        {
            path: '/setting',
            name: 'setting',
            component: () => import(/* webpackChunkName: "setting" */ 'components/My/set/setting.vue'),
        },
        {
            path: '/Message',
            name: 'Message',
            component: () => import(/* webpackChunkName: "Message" */ 'components/My/set/Message.vue'),
        },
        {
            path: '/agree',
            name: 'agree',
            component: () => import(/* webpackChunkName: "agree" */ 'components/My/set/agree.vue'),
        },
        {
            path: '/about',
            name: 'about',
            component: () => import(/* webpackChunkName: "about" */ 'components/My/set/about.vue'),
        },
        {
            path: '/password',
            name: 'password',
            component: () => import(/* webpackChunkName: "password" */ 'components/My/set/password'),
        },
        {
            path: '/authen',
            name: 'authen',
            component: () => import(/* webpackChunkName: "authen" */ 'components/My/company/authen'),
        },
        {
            path: '/authen/submit',
            name: 'authenSub',
            component: () => import(/* webpackChunkName: "authenSub" */ 'components/My/company/submit'),
        },
		{
		    path: '/authen/submit-1',
		    name: 'authenSub',
		    component: () => import(/* webpackChunkName: "authenSub" */ 'components/My/company/submit-1'),
		},
        {
            path: '/vip',
            name: 'vip',
            component: () => import(/* webpackChunkName: "vip" */ 'components/My/vip/vip'),
        },
        {
            path: '/invoice/list',
            name: 'invoiceList',
            component: () => import(/* webpackChunkName: "invoiceList" */ 'components/My/invoice/list'),
        },
        {
            path: '/invoice/head',
            name: 'invoiceHead',
            component: () => import(/* webpackChunkName: "invoiceHead" */ 'components/My/invoice/head'),
        },
        {
            path: '/invoice/add',
            name: 'invoiceAdd',
            component: () => import(/* webpackChunkName: "invoiceHead" */ 'components/My/invoice/addInvoice'),
        },
        {
            path: '/invoice/edit/:id',
            name: 'invoiceEdit',
            component: () => import(/* webpackChunkName: "invoiceHead" */ 'components/My/invoice/editInvoice'),
        },
        {
            path: '/invoice/select/:id',
            name: 'invoiceSelect',
            component: () => import(/* webpackChunkName: "invoiceHead" */ 'components/My/invoice/selectHead'),
        },
        {
            path: '/notice/list',
            name: 'noticeList',
            component: () => import(/* webpackChunkName: "noticeList" */ 'components/My/notice/list'),
        },
        {
            path: '/notice/detail/:id',
            name: 'noticeDetail',
            component: () => import(/* webpackChunkName: "noticeDetail" */ 'components/My/notice/detail'),
        },
        {
            path: '/pay/:id',
            name: 'pay',
            component: () => import(/* webpackChunkName: "noticeDetail" */ 'components/Common/pay'),
        },
        {
            path: '/order/:type/:id',
            name: 'orderDetail',
            component: () => import(/* webpackChunkName: "orderconfirm" */ 'components/Order/detail.vue'),
        },
        {
            path: '/order/detail/evaluate/:id',
            name: 'orderEvaluate',
            component: () => import(/* webpackChunkName: "orderconfirm" */ 'components/Order/evaluate.vue'),
        },
        {
            path: '/area',
            name: 'area',
            component: () => import(/* webpackChunkName: "orderconfirm" */ 'components/Common/areaPopuop.vue'),
        },
        {
            path: '/newshare/:id/:money/',
            name: 'newshare',
            component: () => import(/* webpackChunkName: "orderconfirm" */ 'components/Dialog/newshare.vue'),
        },
        {
            path: '/tcsharepage/:id/:money/',
            name: 'tcsharepage',
            component: () => import(/* webpackChunkName: "orderconfirm" */ 'components/Dialog/tcsharepage.vue'),
        },

    ],
});
